//
//  GLGalleryLayout.h
//  Gallery
//
//  Created by admin on 2021/12/28.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface GLGalleryLayout : UICollectionViewFlowLayout

@property (nonatomic, assign) CGFloat preferredScale;///预设缩放
@property (nonatomic, assign) CGFloat preferredEdgeSpace;///左右预留宽度
@property (nonatomic, readonly) NSIndexPath *centralIndexPath;///当前居中的cell索引

+ (instancetype)layoutWithPreferredScale:(CGFloat)scale edgeSpace:(CGFloat)space;

@end

NS_ASSUME_NONNULL_END
